3.226 \(\int \frac {\log (c (b x^n)^p)}{x} \, dx\)

Optimal. Leaf size=22 \[ \frac {\log ^2\left (c \left (b x^n\right )^p\right )}{2 n p} \]

[Out]

1/2*ln(c*(b*x^n)^p)^2/n/p

________________________________________________________________________________________

Rubi [A]  time = 0.03, antiderivative size = 22, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {2301, 2445} \[ \frac {\log ^2\left (c \left (b x^n\right )^p\right )}{2 n p} \]

Antiderivative was successfully verified.

[In]

Int[Log[c*(b*x^n)^p]/x,x]

[Out]

Log[c*(b*x^n)^p]^2/(2*n*p)

Rule 2301

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))/(x_), x_Symbol] :> Simp[(a + b*Log[c*x^n])^2/(2*b*n), x] /; FreeQ[{a
, b, c, n}, x]

Rule 2445

Int[((a_.) + Log[(c_.)*((d_.)*((e_.) + (f_.)*(x_))^(m_.))^(n_)]*(b_.))^(p_.)*(u_.), x_Symbol] :> Subst[Int[u*(
a + b*Log[c*d^n*(e + f*x)^(m*n)])^p, x], c*d^n*(e + f*x)^(m*n), c*(d*(e + f*x)^m)^n] /; FreeQ[{a, b, c, d, e,
f, m, n, p}, x] &&  !IntegerQ[n] &&  !(EqQ[d, 1] && EqQ[m, 1]) && IntegralFreeQ[IntHide[u*(a + b*Log[c*d^n*(e
+ f*x)^(m*n)])^p, x]]

Rubi steps

\begin {align*} \int \frac {\log \left (c \left (b x^n\right )^p\right )}{x} \, dx &=\operatorname {Subst}\left (\int \frac {\log \left (b^p c x^{n p}\right )}{x} \, dx,b^p c x^{n p},c \left (b x^n\right )^p\right )\\ &=\frac {\log ^2\left (c \left (b x^n\right )^p\right )}{2 n p}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 22, normalized size = 1.00 \[ \frac {\log ^2\left (c \left (b x^n\right )^p\right )}{2 n p} \]

Antiderivative was successfully verified.

[In]

Integrate[Log[c*(b*x^n)^p]/x,x]

[Out]

Log[c*(b*x^n)^p]^2/(2*n*p)

________________________________________________________________________________________

fricas [A]  time = 0.67, size = 19, normalized size = 0.86 \[ \frac {1}{2} \, n p \log \relax (x)^{2} + {\left (p \log \relax (b) + \log \relax (c)\right )} \log \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*(b*x^n)^p)/x,x, algorithm="fricas")

[Out]

1/2*n*p*log(x)^2 + (p*log(b) + log(c))*log(x)

________________________________________________________________________________________

giac [A]  time = 0.30, size = 20, normalized size = 0.91 \[ \frac {1}{2} \, n p \log \relax (x)^{2} + p \log \relax (b) \log \relax (x) + \log \relax (c) \log \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*(b*x^n)^p)/x,x, algorithm="giac")

[Out]

1/2*n*p*log(x)^2 + p*log(b)*log(x) + log(c)*log(x)

________________________________________________________________________________________

maple [A]  time = 0.04, size = 21, normalized size = 0.95 \[ \frac {\ln \left (c \left (b \,x^{n}\right )^{p}\right )^{2}}{2 n p} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(ln(c*(b*x^n)^p)/x,x)

[Out]

1/2*ln(c*(b*x^n)^p)^2/p/n

________________________________________________________________________________________

maxima [A]  time = 1.20, size = 20, normalized size = 0.91 \[ \frac {\log \left (\left (b x^{n}\right )^{p} c\right )^{2}}{2 \, n p} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*(b*x^n)^p)/x,x, algorithm="maxima")

[Out]

1/2*log((b*x^n)^p*c)^2/(n*p)

________________________________________________________________________________________

mupad [B]  time = 3.80, size = 20, normalized size = 0.91 \[ \frac {{\ln \left (c\,{\left (b\,x^n\right )}^p\right )}^2}{2\,n\,p} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(log(c*(b*x^n)^p)/x,x)

[Out]

log(c*(b*x^n)^p)^2/(2*n*p)

________________________________________________________________________________________

sympy [A]  time = 2.02, size = 37, normalized size = 1.68 \[ - \begin {cases} - \log {\relax (x )} \log {\left (b^{p} c \right )} & \text {for}\: n = 0 \\- \log {\relax (c )} \log {\relax (x )} & \text {for}\: p = 0 \\- \frac {\log {\left (c \left (b x^{n}\right )^{p} \right )}^{2}}{2 n p} & \text {otherwise} \end {cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(ln(c*(b*x**n)**p)/x,x)

[Out]

-Piecewise((-log(x)*log(b**p*c), Eq(n, 0)), (-log(c)*log(x), Eq(p, 0)), (-log(c*(b*x**n)**p)**2/(2*n*p), True)
)

________________________________________________________________________________________